package bean;

import java.util.List;

import utils.StringUtil;

/**
 * 动态Item
 * author: xiaoluo
 * date: 2017/6/13 14:06
 */
public class FeedItem {

    public static final int UNKNOWN_POST = 0;     // 未知
    public static final int ASK_PS_POST = 1;      // 求P
    public static final int REPLY_PS_POST = 2;    // 帮P
    public static final int ASK_TRACK_POST = 3;   // 求合奏
    public static final int REPLY_TRACK_POST = 4; // 合奏

    private int id;
    private int uid;
    private TupaiUser user;
    private int type;
    private String desc;
    private int reply_count;
    private int comment_count;
    private int like_count;
    private List<MediaItem> medias;
    private List<TagItem> tags;
    private boolean liked;
    private int status;
    private FeedItem parent;
    private String tpTime;
    private String created_at;
    private String updated_at;

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public String getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(String updated_at) {
        this.updated_at = updated_at;
    }

    public String getTpTime() {
        return StringUtil.transStempTime(created_at);
    }

    public void setTpTime(String tpTime) {
        this.tpTime = tpTime;
    }

    public FeedItem getParent() {
        return parent;
    }

    public void setParent(FeedItem parent) {
        this.parent = parent;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public TupaiUser getUser() {
        return user;
    }

    public void setUser(TupaiUser user) {
        this.user = user;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getReply_count() {
        return reply_count;
    }

    public void setReply_count(int reply_count) {
        this.reply_count = reply_count;
    }

    public int getComment_count() {
        return comment_count;
    }

    public void setComment_count(int comment_count) {
        this.comment_count = comment_count;
    }

    public int getLike_count() {
        return like_count;
    }

    public void setLike_count(int like_count) {
        this.like_count = like_count;
    }

    public List<MediaItem> getMedias() {
        return medias;
    }

    public void setMedias(List<MediaItem> medias) {
        this.medias = medias;
    }

    public List<TagItem> getTags() {
        return tags;
    }

    public void setTags(List<TagItem> tags) {
        this.tags = tags;
    }

    public boolean isLiked() {
        return liked;
    }

    public void setLiked(boolean liked) {
        this.liked = liked;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
